package com.sugon.modules.sparepart.model.vo;

import com.sugon.entity.ScarpListEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 备件报废审核参数VO
 *
 * @author YuXD
 * @since 2023-10-29
 */
@Data
public class SpScarpEaParam implements Serializable {

    /**
     * 领料单ID
     */
    @NotEmpty(message = "报废记录不存在，请确认！")
    private List<String> idList;

    /**
     * 是否可修复
     * 1:自主维修  2:报废
     */
    @NotNull(message = "必须指定是否可修复！")
    @Range(min = 1L, max = 2L, message = "无效是否可修复状态值")
    private Integer state;

    /**
     * 审批意见
     */
    private String checkRemark;

    /*******************VO字段******************/
    /**
     * 审批人
     */
    private String approver;

    /**
     * 报废记录列表
     */
    private List<ScarpListEntity> scarpRecordList;

}
